<?php
/**
 * Created by PhpStorm.
 * User: 23221
 * Date: 2019/2/24
 * Time: 20:55
 */

namespace App\Http\Controllers\TranForm;


use League\Fractal\TransformerAbstract;

class ResumeTransForm extends TransformerAbstract{
    /**
     * 字段映射
     */
    public function transForm($resume){
        return [
            'id'=>$resume['resume_id'],
            'name' => $resume['resume_name'],
            'time' => $resume['resume_time'],
            'default' => $resume['is_default'],
            'place' => $resume['resume_place'],
            'birthday' => $resume['resume_born']
        ];
    }
}